package com.david.jetpack.compose

import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel

class ComposeViewModel: ViewModel() {
    val count = mutableStateOf(0)
    override fun onCleared() {
        super.onCleared()
    }

    fun increaseCount() {
        ++count.value
    }
}